package pers.ree.demo.lambda;

import java.util.Random;

public class MyClass {

    private String name;


    public MyClass() {
        this.name = "Default Name";
    }

    public MyClass(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }



    public static void staticPrint() {
        System.out.println("MyClass staticPrint begin...");
    }

    public static void staticSet(int i) {
        System.out.println("MyClass staticSet param=" + i);
    }

    public static int staticGet() {
        return new Random().nextInt(100);
    }

    public static boolean staticAddPositive(int i) {
        System.out.println("MyClass staticAdd="+i);
        return i > 0;
    }

    public void print() {
        System.out.println("MyClass print begin...");
    }
}
